import { createRouter, createWebHistory } from 'vue-router'
import Login from '../pages/Login.vue'
import HomePage from '../pages/HomePage.vue'
import Request from '../pages/Request.vue'
import Test2 from '../pages/Test2.vue'
import Inbox from '../pages/InboxPage.vue'
import LookTask from '../pages/LookTask.vue'
import LookMessage from '../pages/LookMessage.vue'
import Minister from "../pages/Minister.vue";
// import Request from '../views/Request.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: Login,
      component: Login
    },
    {
      path: '/HomePage',
      name: 'HomePage',
      component: HomePage
    },
    {
      path: '/Request',
      name: 'Request',
      component: Request
    },
    {
      path: '/Test2',
      name: 'Test2',
      component: Test2
    },
    {
      path: '/Inbox',
      name: 'Inbox',
      component: Inbox
      // children:HomePage
    },
    {
      path: '/LookTask',
      name: 'LookTask',
      component: LookTask
    },
    {
      path: '/LookMessage',
      name: 'LookMessage',
      component: LookMessage
    },
    {
      path:'/Minister',
      name:'Minister',
      component:Minister
    },
  ]
})

export default router
